﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Repositories;
using Domain.Entities;
using Database.NHibernateInterface;

namespace Database.Repositories
{
   public class TopicRepository:BaseRepository<Topic>, ITopicRepository
    {
       public TopicRepository(ISessionProvider sessionProvider):base(sessionProvider)
       {
       }

       public override IEnumerable<Topic> GetAll()
       {
           return base.GetAll().OrderBy(x => x.NumberInOrder);
       }
    }
}
